Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / Page Class / ReplaceText Method / ReplaceText(FindTextParams,String,Font,Nullable<Single>) Method
The text to search for.
The replacement text.
The font to use on newText, if a null reference (Nothing in Visual Basic) the current font will be used.
The font size to use on newText, if a null reference (Nothing in Visual Basic) the current font size will be used.

In This Topic
    ReplaceText(FindTextParams,String,Font,Nullable<Single>) Method
    In This Topic
    Replaces a specified text on the current page.

    Note that the results may be affected by the current value of the GrapeCity.Documents.Pdf.Recognition.RecognitionAlgorithm property.

    Syntax
    'Declaration
     
    Public Overloads Sub ReplaceText( _
       ByVal findTextParams As FindTextParams, _
       ByVal newText As System.String, _
       Optional ByVal font As Font, _
       Optional ByVal fontSize As System.Nullable(Of Single) _
    ) 
    public void ReplaceText( 
       FindTextParams findTextParams,
       System.string newText,
       Font font,
       System.Nullable<float> fontSize
    )

    Parameters

    findTextParams
    The text to search for.
    newText
    The replacement text.
    font
    The font to use on newText, if a null reference (Nothing in Visual Basic) the current font will be used.
    fontSize
    The font size to use on newText, if a null reference (Nothing in Visual Basic) the current font size will be used.
    See Also